package com.example.capsule_netty.controller;

import com.example.capsule_netty.service.UserToImeiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: zhuzhiming
 * @Date: 2022/5/3 19:30
 */
@RestController
public class RegisterController {

    @Autowired
    UserToImeiService userBeanService;

    @GetMapping("/registerByImei/{imei}")
    public String registerByImei(@PathVariable String imei) {
        return userBeanService.getUserIdByImei(imei);
    }

}
